﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    [Table("User")]
    public class User
    {
        [Key()]
        public long ID { get; set; }
        [MaxLength(50)]
        public string Account { get; set; }
        public RoleEnum Role { get; set; }
    }

    public enum RoleEnum
    {
        /// <summary>
        /// 一般用户
        /// </summary>
        User,
        /// <summary>
        /// 管理员
        /// </summary>
        Admin,
        /// <summary>
        /// 系统管理员
        /// </summary>
        SysAdmin
    }
}
